package com.example.mapper;

import com.example.entity.Orders;
import com.example.entity.OrdersCustom;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @Author Yoran
* @Description //TODO
* @Date 21:59 2020/6/16
* @Param
* @return
**/
@Mapper
public interface OrdersCustomMapper {
    /**
    * 查询订单关联查询用户信息
    * @Author Yoran
    * @Description //TODO
    * @Date 22:20 2020/6/16
    * @Param []
    * @return java.util.List<com.example.entity.OrdersCustom>
    **/
    List<OrdersCustom> findOrdersUser() ;
    /**
    *通过resultMap 关联orders关联用户信息
    *@Author Yoran
    * @Description //TODO
    * @Date 23:11 2020/6/18
    * @Param []
    * @return java.util.List<com.example.entity.OrdersCustom>
    **/
    List<Orders> findOrdersUserResultMap();

    /**
    * 查询订单关联查询订单明细信息
    * @Author Yoran
    * @Description //TODO
    * @Date 0:00 2020/6/19
    * @Param
    * @return
    **/
    List<Orders> findOrdersAndOrderDetailResultMap();
}
